// 获取个人信息
// GET
// /member/profile
// 请求参数

// import type { ProfileDetail } from '@/types/member'
import type { ProfileParams } from '@/types/member'
import { http } from '@/utils/http'

export const getMemberProfileAPI = () => {
  return http({
    method: 'GET',
    url: '/member/profile',
  })
}

// 会员中心-个人信息
// 修改个人信息
// PUT
// /member/profile

export const putMemberProfileAPI = (data: ProfileParams) => {
  return http<ProfileParams>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
